Promise.reject2=function (value){
    return  new Promise((resolve,reject)=>{
        reject(value)
    })
}
    Promise.reject2(2).catch(error=>console.log(error))//2